package com.funtl.hello.spring.cloud.alibaba.nacos.consumer.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author: lz
 * @Description:
 * @Date: 2019/8/14
 *
 * @Configuration: spring boot注解，声明为java的配置类（ = spring-context.xml）
 *
 * @Bean: 声明注入spring容器:( = <bean id = "restTemplate" class = ...)
 *
 */
@Configuration
public class NacosConsumerConfiguration {
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
